package com.runfast.waimai.dao.model;

import java.io.Serializable;

public class RunfastGoodsSellSubOption implements Serializable {
    private Integer id;

    private String barcode;

    private Integer del;

    private Integer goodssellid;

    private String goodssellname;

    private String name;

    private Integer optionid;

    private String optionname;

    private Integer sort;

    private Integer businessid;

    private String businessname;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastGoodsSellSubOption withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBarcode() {
        return barcode;
    }

    public RunfastGoodsSellSubOption withBarcode(String barcode) {
        this.setBarcode(barcode);
        return this;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode == null ? null : barcode.trim();
    }

    public Integer getDel() {
        return del;
    }

    public RunfastGoodsSellSubOption withDel(Integer del) {
        this.setDel(del);
        return this;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getGoodssellid() {
        return goodssellid;
    }

    public RunfastGoodsSellSubOption withGoodssellid(Integer goodssellid) {
        this.setGoodssellid(goodssellid);
        return this;
    }

    public void setGoodssellid(Integer goodssellid) {
        this.goodssellid = goodssellid;
    }

    public String getGoodssellname() {
        return goodssellname;
    }

    public RunfastGoodsSellSubOption withGoodssellname(String goodssellname) {
        this.setGoodssellname(goodssellname);
        return this;
    }

    public void setGoodssellname(String goodssellname) {
        this.goodssellname = goodssellname == null ? null : goodssellname.trim();
    }

    public String getName() {
        return name;
    }

    public RunfastGoodsSellSubOption withName(String name) {
        this.setName(name);
        return this;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getOptionid() {
        return optionid;
    }

    public RunfastGoodsSellSubOption withOptionid(Integer optionid) {
        this.setOptionid(optionid);
        return this;
    }

    public void setOptionid(Integer optionid) {
        this.optionid = optionid;
    }

    public String getOptionname() {
        return optionname;
    }

    public RunfastGoodsSellSubOption withOptionname(String optionname) {
        this.setOptionname(optionname);
        return this;
    }

    public void setOptionname(String optionname) {
        this.optionname = optionname == null ? null : optionname.trim();
    }

    public Integer getSort() {
        return sort;
    }

    public RunfastGoodsSellSubOption withSort(Integer sort) {
        this.setSort(sort);
        return this;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getBusinessid() {
        return businessid;
    }

    public RunfastGoodsSellSubOption withBusinessid(Integer businessid) {
        this.setBusinessid(businessid);
        return this;
    }

    public void setBusinessid(Integer businessid) {
        this.businessid = businessid;
    }

    public String getBusinessname() {
        return businessname;
    }

    public RunfastGoodsSellSubOption withBusinessname(String businessname) {
        this.setBusinessname(businessname);
        return this;
    }

    public void setBusinessname(String businessname) {
        this.businessname = businessname == null ? null : businessname.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", barcode=").append(barcode);
        sb.append(", del=").append(del);
        sb.append(", goodssellid=").append(goodssellid);
        sb.append(", goodssellname=").append(goodssellname);
        sb.append(", name=").append(name);
        sb.append(", optionid=").append(optionid);
        sb.append(", optionname=").append(optionname);
        sb.append(", sort=").append(sort);
        sb.append(", businessid=").append(businessid);
        sb.append(", businessname=").append(businessname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}